x=int(input('输入成绩：'))
if x>=90:
    print('A')
elif x<90 and x>=80:
    print('B')
elif x<80 and x>=70:
    print('C')
elif x<70 and x>=60:
    print('D')
else:
    print('E')
